//part1:ep1.4.1:ep1.4.1.cpp
// sum of 1 to 10.
#include <iostream>
int main(void)
{
    int sum = 0, val = 1;
    while(val <= 10)
    {
        sum += val;
        val++;
    }
    std::cout << "Sum of 1 to 10 inclusive is "
        << sum << std::endl;
        
    return 0;
}